/*    */ package com.fmjr.common.util;
/*    */ 
/*    */ public class Assert
/*    */ {
/*    */   public static void notEmpty(Object object, String message)
/*    */   {
/* 17 */     if (object == null)
/* 18 */       throw new IllegalArgumentException(message);
/*    */   }
/*    */ 
/*    */   public static void notEmpty(Object object)
/*    */   {
/* 28 */     notEmpty(object, "this argument is required; it must not empty");
/*    */   }
/*    */ 
/*    */   public static void notEmpty(String text, String message)
/*    */   {
/* 38 */     if ((text == null) || ("".equals(text.trim())))
/* 39 */       throw new IllegalArgumentException(message);
/*    */   }
/*    */ 
/*    */   public static void notEmpty(String text)
/*    */   {
/* 49 */     notEmpty(text, "this argument is required; it must not empty");
/*    */   }
/*    */ 
/*    */   public static boolean isEmpty(String text)
/*    */   {
/* 60 */     return ((text == null) || ("".equals(text.trim())));
/*    */   }
/*    */ }

/* Location:           C:\Documents and Settings\Administrator\桌面\hna_frame.jar
 * Qualified Name:     com.hnatourism.framework.utils.Assert
 * JD-Core Version:    0.5.3
 */